//
//  LGTRWZPostRulerCell.swift
//  KJLGT
//
//  Created by jenkin on 2019/8/23.
//  Copyright © 2019年 jenkin. All rights reserved.
//

import UIKit

class LGTRWZPostRulerCell: UITableViewCell,UITextViewDelegate {

    var textView:UITextView?
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }

    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        self.selectionStyle = UITableViewCell.SelectionStyle.none
        
        
        
        let button:UIButton = LGTViewCreateUtil.share.createLGTButton(image: "hook", selected: "hook", dW: SizeFitFloat(5), dH: SizeFitFloat(5))
        self.addSubview(button)
        button.snp.makeConstraints { (make) in
            make.width.height.equalTo(SizeFitFloat(16))
            make.top.equalTo(SizeFit(15))
            make.left.equalTo(SizeFit(13))
        }
        
        self.textView = LGTViewCreateUtil.share.createPublicAgreenText()
        self.addSubview(self.textView!)
        self.textView?.delegate = self
        self.textView?.frame = CGRect.init(x: SizeFit(30), y: SizeFit(14), width: SizeFit(250), height: SizeFit(18))
        
        let line:UIImageView = LGTViewCreateUtil.share.createLineView()
        line.isHidden = true
        self.addSubview(line)
        line.snp.makeConstraints { (make) in
            make.top.equalTo(56)
            //make.top.equalTo(600)
            make.height.equalTo(1)
            make.left.equalTo(SizeFitFloat(13))
            make.right.equalTo(SizeFitFloat(-11))
            make.bottom.equalTo(0)
        }
    }
}
